// pages/component/swiper/1/index.js
const { img } = getApp()
Page({
    /**
     * 页面的初始数据
     */
    data: {
        data: [
            { title:'标题1', image:  img + 'banner/1.png' },
            { title:'标题2', image:  img + 'banner/2.png' },
            { title:'标题3', image:  img + 'banner/3.png' },
        ]
    },
    onTap({ detail: { item, index } } ){
        console.log(index, item)
    }
})